﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RRHH.Entities;
using RRHH.DataAccess;

namespace RRHH.BusinessLogic
{
    public class BLMaestroPersonal2
    {

        DAOMaestroPersonal2 _DAOMaestroPersonal = new DAOMaestroPersonal2();

        /************************************************************************************************
        *                          J. SALCEDO MAESTROPERSONAL
        * **********************************************************************************************/
        public List<BEMaestroPersonal> ListarMaestroPersonalXIDPersonal(int personalID)
        {
            return _DAOMaestroPersonal.ListarMaestroPersonalXIDPersonal(personalID);
        }

        public BEMaestroPersonal BuscarMaestroPersonalXID(int personalID, string codigoEmpleado)
        {
            return _DAOMaestroPersonal.BuscarMaestroPersonalXID(personalID, codigoEmpleado);
        }

        public int RegistrarMaestroPersonal(BEMaestroPersonal _BEMaestroPersonal)
        {
            return _DAOMaestroPersonal.RegistrarMaestroPersonal(_BEMaestroPersonal);
        }

        public int ModificarMaestroPersonal(BEMaestroPersonal _BEMaestroPersonal)
        {
            return _DAOMaestroPersonal.ModificarMaestroPersonal(_BEMaestroPersonal);
        }

        /************************************************************************************************
         *                          CARLOS ENVIO T-REGISTRO
         * **********************************************************************************************/
        public List<BEMaestroPersonal> ListarIngresosPersonal()
        {

            return _DAOMaestroPersonal.ListarIngresosPersonal();
        }

        public BEIngresoTRegistro EnvioIngresoTRegistro(int personalID, string codigoEmpleado)
        {
            return _DAOMaestroPersonal.EnvioIngresoTRegistro(personalID, codigoEmpleado);
        }
    }
}
